package com.zy.springcloud.service.impl;

import com.zy.springcloud.dao.PaymentDao;
import com.zy.springcloud.entities.Payment;
import com.zy.springcloud.service.PaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author <a href="mailto:zhouyong@cqyyt.com">zy</a>
 * @version 1.0
 * @date 2020/8/5 16:29
 */
@Service
public class PaymentServiceImpl implements PaymentService {

    @Autowired
    private PaymentDao paymentDao;

    @Override
    public int save(Payment payment) {
        return paymentDao.save(payment);
    }

    @Override
    public Payment select(long id) {
        return paymentDao.select(id);
    }
}
